package com.dr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dr.entity.Address;
import com.dr.mapper.AddressMapper;
import com.dr.service.AddressService;
@Service
@Transactional
public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressMapper addressMapper;

	@Override
	public List<Address> findAddress(Integer id) {
		// TODO Auto-generated method stub
		return addressMapper.findAddress(id);
	}

	@Override
	public Address AllAddress(Integer id) {
		// TODO Auto-generated method stub
		return addressMapper.AllAddress(id);
	}

	@Override
	public int addAddress(Address a) {
		// TODO Auto-generated method stub
		return addressMapper.addAddress(a);
	}

	@Override
	public int updateAddress(Address a) {
		// TODO Auto-generated method stub
		return addressMapper.updateAddress(a);
	}

	

	

	
	
}
